# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=txt2man
pkgver=1.7.1
pkgrel=0
pkgdesc="Convert flat ASCII text to man page format"
url="https://github.com/mvertes/txt2man"
arch="noarch"
license="GPL-2.0-or-later"
depends="gawk"
subpackages="$pkgname-doc"
source="https://github.com/mvertes/$pkgname/archive/$pkgname-$pkgver.tar.gz
	makefile.patch"

builddir="$srcdir/$pkgname-$pkgname-$pkgver"

package() {
	make DESTDIR="$pkgdir" prefix=/usr mandir=/usr/share/man install
}

sha512sums="550b1d30a4435f35d03920d89f5f2adc2a937de7575c4ddc51ee9f4fe370975b45e51f5aec0eb865ead4b16d88ad31f3150cd3235362b1fc7e6d7b3c6233852a  txt2man-1.7.1.tar.gz
c8b702902b2b49d374d5dbe726862fc2c8cb37d36bfca27aae6dceeefc2e351d760ce7482a4f34f867f3eb2eb176c08828e89eefb7c9297487f6cefb2f8eec8a  makefile.patch"
